package java02;

import java.util.Arrays;
import java.util.Scanner;

public class Main04{
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		while (true) {
			int number = sc.nextInt();
			String[][] arr = new String[number][];
			for (int n = 0; n < number; n++) {
				arr[n] = new String[n + 1];
			}
			for (int i = 0; i < number; i++) {
				for (int j = 0; j < arr[i].length; j++) {
					arr[i][j] = (i + 1) + "*" + (j + 1) + "=" + (i + 1)
							* (j + 1);
					if(j != i)
					System.out.printf("%d*%d=%-2d ", (i + 1), (j + 1), (i + 1)
							* (j + 1));
					else 
						System.out.printf("%d*%d=%d", (i + 1), (j + 1), (i + 1)
							* (j + 1));
				}
				System.out.println();
			}
			System.out.println(Arrays.deepToString(arr));
		}
	}
}
